package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2017/6/6 0006.
 */

public class RewardVideoRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "report_video_advert";

    @SerializedName("advert_id")
    private String advertId;

    /**
     * 视频播放是否完成，0表示未播放完，1表示播放完
     */
    @SerializedName("is_complete")

    private int videoCompleted;

    /**
     * 是否拥有视频激励奖，0表示没有视频激励奖，1表示拥有视频激励奖
     */
    @SerializedName("is_reward")
    private int videoReward;

    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getAdvertId() {
        return advertId;
    }

    public void setAdvertId(String advertId) {
        this.advertId = advertId;
    }

    public int getVideoCompleted() {
        return videoCompleted;
    }

    public void setVideoCompleted(int videoCompleted) {
        this.videoCompleted = videoCompleted;
    }

    public int getVideoReward() {
        return videoReward;
    }

    public void setVideoReward(int videoReward) {
        this.videoReward = videoReward;
    }

    public RewardVideoRequestParams() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.advertId);
        dest.writeInt(this.videoCompleted);
        dest.writeInt(this.videoReward);
    }

    protected RewardVideoRequestParams(Parcel in) {
        super(in);
        this.advertId = in.readString();
        this.videoCompleted = in.readInt();
        this.videoReward = in.readInt();
    }

    public static final Creator<RewardVideoRequestParams> CREATOR = new Creator<RewardVideoRequestParams>() {
        @Override
        public RewardVideoRequestParams createFromParcel(Parcel source) {
            return new RewardVideoRequestParams(source);
        }

        @Override
        public RewardVideoRequestParams[] newArray(int size) {
            return new RewardVideoRequestParams[size];
        }
    };
}
